package o;

import android.content.res.ColorStateList;
import android.view.View;
import com.google.android.material.textfield.TextInputLayout;
import java.lang.ref.WeakReference;

public class pg extends SkinAttr {

    static final class b extends fkz<SkinAttr, ColorStateList> {
        private WeakReference<TextInputLayout> ˎ;

        public /* synthetic */ void ॱ(Object obj) {
            ˎ((ColorStateList) obj);
        }

        private b(TextInputLayout textInputLayout) {
            this.ˎ = new WeakReference(textInputLayout);
        }

        public void ˎ(ColorStateList colorStateList) {
            TextInputLayout textInputLayout = (TextInputLayout) this.ˎ.get();
            if (textInputLayout != null) {
                textInputLayout.setPasswordVisibilityToggleTintList(colorStateList);
            }
        }
    }

    public pg() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof TextInputLayout) {
            TextInputLayout textInputLayout = (TextInputLayout) view;
            if ("color_state_list".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "color_state_list";
                fks.ˎ(view.getContext(), this, new b(textInputLayout)).ॱ(z);
            }
        }
    }
}
